﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucVnHomeProductsLastVersion.ascx.cs" Inherits="VINETLIFE.Module.ucVnHomeProductsLastVersion" %>

<div class="t-home-product-wrap-08-05">
    <asp:Repeater runat="server" ID="rptHomeCategories" OnItemDataBound="rptHomeCategories_ItemDataBound">
        <ItemTemplate>
            <div class="t-home-new-group-product">
                <div class="t-home-new-product-title-wrap">
                    <div class="bupa-title-wrap">
                        <div class="bupa-title-left">
                            <a href='/danh-muc-san-pham/<%#VINETLIFE.Ultility.Change_AV(Eval("ProductCategoryTitle").ToString()) %>-<%#Eval("productCategoryId") %>' title='<%#Eval("ProductCategoryTitle")%>'>
                                <h2><%#Eval("ProductCategoryTitle")%></h2>
                            </a>
                        </div>
                        <div class="bupa-title-right-x">
                            <a href='/danh-muc-san-pham/<%#VINETLIFE.Ultility.Change_AV(Eval("ProductCategoryTitle").ToString()) %>-<%#Eval("productCategoryId") %>' title="Xem tiếp">Xem tiếp</a>
                        </div>
                    </div>
                    <!--Product below-->
                </div>
                <div class="t-home-new-product-wrap">
                    <asp:Repeater runat="server" ID="rptHomeProducts" OnItemDataBound="rptHomeProducts_ItemDataBound">
                        <ItemTemplate>
                            <div class="t-product">
                                <a href='/san-pham/<%#VINETLIFE.Ultility.Change_AV(Eval("ProductTitle").ToString())%>-<%#Eval("ProductID")%>'
                                    title='<%#Eval("ProductTitle") %>' class="t-product-link">
                                    <div class="t-product-img-wrap">
                                        <img alt='<%#Eval("ProductTitle")%>' title='<%#Eval("ProductTitle")%>' src='/Media/<%#Eval("ProductImage") %>' class="t-product-img" />
                                    </div>
                                    <div class="t-product-info">
                                        <h2><%#Eval("ProductTitle")%></h2>
                                        <div class="t-product-price-wrap">
                                            <div class="t-pwpp-nonprice-wrap-inner">
                                                <div class="t-product-price">
                                                    <span class="t-product-span-price"><%#VINETLIFE.Ultility.GetPrice(Eval("ProductId"))%></span>
                                                    <span class="t-pwmp-saleprice-m">
                                                        <%#VINETLIFE.Ultility.GetSalePriceNormal(Eval("IsPromotion"),Eval("Price"))%>
                                                    </span>
                                                </div>

                                            </div>
                                        </div>
                                        <div class="t-product-info-view">
                                        </div>
                                    </div>
                                    <div class="t-product-type">
                                        <asp:Label runat="server" ID="lblType"></asp:Label>
                                    </div>
                                    <div class="t-product-wrap-more">
                                        <div class="t-product-wrap-more-head">
                                            <div class="t-product-desc-wrap">
                                                <div class="t-product-desc">
                                                    <%#Eval("HomeDescription") %>
                                                </div>
                                            </div>
                                        </div>
                                        <asp:Panel runat="server" ID="pnlPromotion">
                                            <div class="t-product-wrap-more-promotion">
                                                <span class="t-pwmp-sale">Giảm<br />
                                                    <asp:Literal runat="server" ID="ltrSale"></asp:Literal></span>
                                                <div class="t-pwmp-price-wrap">
                                                    <div class="t-pwmp-sale-saleprice">
                                                        <span>Giá gốc </span><span style="text-decoration: line-through;"><%#VINETLIFE.Ultility.GetPriceNormal(Eval("Price"))%></span>
                                                    </div>
                                                    <span class="t-pwmp-sale-price"><span>Còn: </span><%#VINETLIFE.Ultility.GetPriceNormal(Eval("SalePrice"))%></span>
                                                    <a href='/san-pham/<%#VINETLIFE.Ultility.Change_AV(Eval("ProductTitle").ToString())%>-<%#Eval("ProductID")%>'
                                                        title='<%#Eval("ProductTitle") %>' class="t-product-link-pro">Xem tiếp
                                                    </a>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                        <asp:Panel runat="server" ID="pnlNonPromotion" Visible="false">
                                            <div class="t-product-wrap-more-nonpromotion">
                                                <div class="t-pwmp-nonprice-wrap">

                                                    <span class="t-pwmp-price">Giá: </span><span class="t-pwmp-sale-price-x"><%#VINETLIFE.Ultility.GetPriceNormal(Eval("Price"))%></span>

                                                    <a href='/san-pham/<%#VINETLIFE.Ultility.Change_AV(Eval("ProductTitle").ToString())%>-<%#Eval("ProductID")%>'
                                                        title='<%#Eval("ProductTitle") %>' class="t-product-link-pro-x">Xem tiếp
                                                    </a>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                </a>
                                <a href="#" class="t-product-info-next"></a>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>

                </div>
            </div>
        </ItemTemplate>
    </asp:Repeater>
</div>
